package com.iran.Iterator;

import java.util.ArrayList;
import java.util.List;

public class ConcreteAggregate extends Aggregate {
    private List<Object> lists = new ArrayList<>();
    @Override
    public ConcreteIterator createIterator() {
        return new ConcreteIterator(this);
    }
    public int count(){
        return lists.size();
    }
    public Object get(int index){
        return lists.get(index);
    }
}
